LOCAL_PATH := $(call my-dir)

$(info "LOCAL_PATH=$(LOCAL_PATH)")
#$(warning "LOCAL_PATH=$(LOCAL_PATH)")
#$(error "LOCAL_PATH=$(LOCAL_PATH)") #这个信息会终止编译

#也可用shell echo命令输出， 不过需要重定向到文件
#$(shell echo "LOCAL_PATH=$(LOCAL_PATH)">$(LOCAL_PATH)/log.txt)
#返回机器名
#$(shell uname -m)

include $(CLEAR_VARS)
LOCAL_C_INCLUDES := \
	$(LOCAL_PATH)/include

#EXTRA_CPP_LIST := $(wildcard $(LOCAL_PATH)/utils/*.cpp)
#EXTRA_CPP_LIST += $(wildcard $(LOCAL_PATH)/utils/*.c)
#LOCAL_SRC_FILES := $(EXTRA_CPP_LIST:$(LOCAL_PATH)/%=%) \
#	native-lib.cpp

LOCAL_SRC_FILES := \
	native-lib.cpp

LOCAL_LDLIBS := -lm -llog -lz
LOCAL_CFLAGS += -DPLATFORM_ANDROID

LOCAL_MODULE := native-lib
include $(BUILD_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_SHARED_LIBRARIES := native-lib
LOCAL_MODULE := native-exe
include $(BUILD_EXECUTABLE)